package calao.storage.bdb;

import calao.storage.Index;

public class CursorStats 
{
	
	final int entryCount;
	final int recordCount;
	final Index index;

	CursorStats(TableCursor cursor)
	{
		this.entryCount = cursor.getBdbFetchCount();
		this.recordCount = cursor.rcount;
		this.index = cursor.index;
	}
	
	/** Gets the number of BDB database entries fetched by this cursor.
	 */
	public int getEntryCount()
	{
		return entryCount;
	}
	
	/** Gets the number of records fetched by this cursor.
	 */
	public int getRecordCount()
	{
		return recordCount;
	}

	/** Gets the index used by this cursor.
	 */
	public Index getUsedIndex()
	{
		return index;
	}
	
}
